package auth.service.provider.web;

import demo.auth.api.domain.User;
import demo.auth.api.interfaces.AuthApi;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Chen Jie
 * @email jie.chen@remarkdip.com
 * @date 2018/7/24
 */
@RestController
public class AuthController implements AuthApi {

    @Override
    public String getPassword(@RequestBody User user) {
        return "chenjie";
    }

    @Override
    public String getUsername() {
        return "cj";
    }
}
